package com.lizhi.yun.core.index.controller;/**
 * @program: hbsf_yun
 * @name IndexController
 * @description: 首页的controller
 * @author: lizhi
 * @create: 2020-11-14 22:09
 */

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.core.index.handler.IndexHandler;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *@program: hbsf_yun
 *@name IndexController
 *@description: 首页的controller
 *@author: lizhi
 *@create: 2020-11-14 22:09
 */
@RestController
@RequestMapping(value = "/api/upp/index")
public class IndexController {

    @Resource
    private IndexHandler indexHandler;

    @PostMapping(path = "/doIndex")
    public ListResponseResult doIndex(){
        return indexHandler.indexMain();
    }

    @ApiOperation("查询版本号")
    @PostMapping(path = "/getVersion")
    public ListResponseResult getVersion(){
        return indexHandler.getVersion();
    }
}
